package com.example.bitcoinnotificator;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class CheckerBroadcastReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		double CurrentValue = intent.getDoubleExtra(CheckerService.CURVALUE, 0);
		Toast.makeText(context, "Bitcoin value alert!!! Current value is "+Double.toString(CurrentValue), Toast.LENGTH_LONG).show();
	}

}
